﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Acme.BookStore2.Migrations
{
    public partial class vehicleinspectionforeignkey : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddForeignKey(
                name: "FK_AppVehicleInspectionRecord_AppVehicle_VehicleId",
                table: "AppVehicleInspectionRecord",
                column: "VehicleId",
                principalTable: "AppVehicle",
                principalColumn: "Id",
                onDelete: ReferentialAction.Cascade);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_AppVehicleInspectionRecord_AppVehicle_VehicleId",
                table: "AppVehicleInspectionRecord");
        }
    }
}
